<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('Device/index')}">设备列表</a></li>
     		<li><a href="{:U('Device/inputcsv')}">导入信息</a></li>
            <li class="active"><a href="{:U('Device/add')}">添加设备</a></li>
        </ul>
        <form action="{:U('Device/add_post')}" method="post" class="form-horizontal js-ajax-form" enctype="multipart/form-data">
            <div class="row-fluid">
                <div class="span12">
                    <table class="table table-bordered">
                        <tr>
                            <th>条形码</th>
                            <td>
                                <input type="text" name="barcode" required placeholder="请输入条形码"/>
                            </td>
                        </tr>
                        <tr>
                            <th>设备ID</th>
                            <td>
                                <input type="text" name="devid" required placeholder="请输入设备ID"/>
                            </td>
                        </tr>
                        <tr>
                            <th>设备UUID</th>
                            <td>
                                <input type="text" name="uuid" required placeholder="请输入设备UUID"/>
                            </td>
                        </tr>
                        <tr>
                            <th>major值</th>
                            <td>
                                <input type="text" name="major" required placeholder="请输入major值"/>
                            </td>
                        </tr>
                        <tr>
                            <th>minor值</th>
                            <td>
                                <input type="text" name="minor" required placeholder="请输入minor值"/>
                            </td>
                        </tr>
                        <tr>
                            <th>激活日期</th>
                            <td>
                                <input type="text" name="livetime" value="{:date('Y-m-d H:i:s')}" class="js-datetime"/>
                            </td>
                        </tr>
                        <tr>
                            <th>设备状态</th>
                            <td>
                                <select name="status">
                                    <foreach name="bstatus" item="vo">
                                        <option value="{$vo.id}">{$vo.name}</option>
                                    </foreach>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>备注</th>
                            <td>
                                <input type="text" name="remark" placeholder="备注说明"/>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="form-actions">
                <button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
                <a class="btn" href="{:U('Device/index')}">返回</a>
            </div>
        </form>
    </div>
    <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>
